<?php
include_once("player_repository.php");
$repPlayer= new PlayerRepository;
$playerid=$_POST['playerid'];
$fname=$_POST['fname'];
$sname=$_POST['sname'];
$email=$_POST['email'];
$status=$_POST['status'.$playerid];


	$repPlayer->updatePlayer($playerid, $fname, $sname, $email, $status);
	header('LOCATION:'.$_SERVER["HTTP_REFERER"]);

?>